import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/DataManagement',
    name: 'DataManagement',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/DataManagement/index.vue')
  },
  {
    path:'/ModelManagement',
    name:'ModelManagement',
    component:()=>import('../views/ModelManagement/index.vue')
  },
  {
    path:'/ModelBuild',
    name:'ModelBuild',
    component:()=>import('../views/ModelBuild/index.vue')
  },
  {
    path:'/FeaturesBuild',
    name:'FeaturesBuild',
    component:()=>import('../views/FeaturesBuild/index.vue')
  },
  {
    path:'/WorkFlow',
    name:'WorkFlow',
    component:()=>import('../views/WorkFlow/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
